﻿using System.Collections.Generic;
using System.Linq;
using System.ServiceModel;
using System.ServiceModel.Activation;
using mal.balades.Business.DataModel;
using mal.balades.Business.Web;

namespace mal.balades.Web.Administration
{
    [ServiceContract(Namespace = "mal.balades.Web.Administration")]
    [AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)]
    public class FeedService
    {
        [OperationContract]
        public List<Feed> GetAllFeeds()
        {
            return BaladesManagerProxy.Instance.FeedDataAccess.GetAllFeeds().ToList();
        }

        //[OperationContract]
        //public List<Feed> SaveFeeds(List<Feed> feeds)
        //{
        //    BaladesManagerProxy.Instance.FeedDataAccess.UpdateFeeds(feeds);

        //    return GetAllFeeds();
        //}
    }
}
